import React from 'react';

class CommentList extends React.Component {
    constructor(props) {
        super(props);
    }

    render() {
        console.log(this.props)
        return (
            <div>
                {this.props.data.map((comment) => (
                    comment
                ))}
            </div>
        );
    }
}

export default CommentList;